package com.itheima.mm.dao;

import com.itheima.mm.entity.QueryPageBean;
import com.itheima.mm.pojo.Course;

import java.util.List;

/**
 * 包名:com.itheima.mm.dao
 * 作者:Leevi
 * 日期2020-01-15  11:23
 */
public interface CourseDao {
    void add(Course course);

    Long getTotal(QueryPageBean queryPageBean);

    List<Course> findPageList(QueryPageBean queryPageBean);

    void update(Course course);

    Long findCatalogCountByCourseId(Integer id);

    Long findTagCountByCourseId(Integer id);

    Long findQuestionCountByCourseId(Integer id);

    void deleteById(Integer id);

    List<Course> findAll(Integer status);
}
